html,
body,
#app {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
}
#app {
  background-image: linear-gradient(125deg, #D32F2F, #C2185B, #7B1FA2, #512DA8, #303F9F);
  background-size: 400%;
  animation: bgMove 6s infinite;
  position: relative;
  user-select: none;
}
@keyframes bgMove {
  0% {
    background-position: 0 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}
.ball {
  display: block;
  width: 5rem;
  height: 5rem;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid #000;
  box-shadow: 0 0 0.5rem 0 #000;
  border-radius: 100%;
  position: absolute;
  top: 10%;
  left: 47.5%;
}
.ball-before-move {
  animation: ballBeat 3s infinite;
}
@keyframes ballBeat {
  0%,
  10% {
    top: 10% ;
  }
  50%,
  60% {
    top: 20% ;
  }
  100% {
    top: 10% ;
  }
}
#baffle {
  display: block;
  width: 10rem;
  height: 0.5rem;
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0.3rem 0 #fff;
  border-radius: 5rem;
  position: absolute;
  bottom: 10%;
  left: 45%;
}
#actionBtn {
  color: #333;
  border: 1px solid #000;
  box-shadow: 0 0 0.5rem 0 #000;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 10rem;
  height: 3rem;
  border-radius: 3rem 0;
  position: absolute;
  top: 48.5%;
  left: calc(50% - 5rem);
  letter-spacing: 0.2rem;
  transition: transform 0.5s;
  cursor: pointer;
}
#actionBtn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: rotate(360deg);
  width: 10rem;
  height: 10rem;
  top: calc(50% - 5rem);
  left: calc(50% - 5rem);
  border-radius: 100%;
}
#gameInformation {
  color: #fff;
  display: none;
  position: absolute;
  top: 1rem;
  left: 1rem;
}
#result {
  display: none;
  width: 25rem;
  height: 15rem;
  position: absolute;
  top: calc(50% - 7.5rem);
  left: calc(50% - 12.5rem);
  border: 1px solid #000;
  box-shadow: 0 0 0.5rem 0 #000;
  border-radius: 15rem 0;
  color: #333;
  align-items: center;
  justify-content: center;
}
